<?php
/**
 * Side Box Template
 *
 * @package templateSystem
 * @copyright Copyright 2003-2005 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: tpl_best_sellers.php 2982 2006-02-07 07:56:41Z birdbrain $
 */


 /*
  $content = '';
  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
  $content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
  for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
    $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
  }
  $content .= '</ol>' . "\n";
  $content .= '</div>' . "\n";
  $content .= '</div>';
  */

  //modify by  vincent, hard code the best sellers
  $content = '';
	
	//top 1
	$content .= '<div class="sideBoxContent centeredContent">';
	$content .= '<div><img src="/images/crown.gif"/><span class="bestsellersNO">NO.1</span></div>';
	$content .= '<a href="http://www.laser-door.com/650nm5mw150mw16mm60mm-p-265.html"><img src="/images/650nm 5mW~150mW red laser module.jpg"  width="150" height="150" ></a>';
	$content .= '<a class="sidebox-products"  href="http://www.laser-door.com/650nm5mw150mw16mm60mm-p-265.html">650nm 5mW~150mW 赤色 レーザーモジュール Φ16mm×60mm</a>';
	$content .= '<div>4500円</div>';
	$content .= '</div>';	
		
	//top 2
	$content .= '<div class="sideBoxContent centeredContent">';
	$content .= '<div><img src="/images/crown.gif"/><span class="bestsellersNO">NO.2</span></div>';
	$content .= '<a href="http://www.laser-door.com/532nm5mw50mw-p-287.html"><img src="/images/532nm 5mW-50mW green laser module line.jpg"  width="150" height="150" ></a>';
	$content .= '<a class="sidebox-products"  href="http://www.laser-door.com/532nm5mw50mw-p-287.html">532nm 5mw~50mw 緑色 レーザーモジュール 線形</a>';
	$content .= '<div>5900円</div>';
	$content .= '</div>';
	
	
	
	//top 3
	$content .= '<div class="sideBoxContent centeredContent">';
	$content .= '<div><img src="/images/crown.gif"/><span class="bestsellersNO">NO.3</span></div>';
	$content .= '<a href="http://www.laser-door.com/808nm500mw-p-215.html"><img src="/images/laser diode 500mw 808nm.jpg"  width="150" height="150" ></a>';
	$content .= '<a class="sidebox-products"  href="http://www.laser-door.com/808nm500mw-p-215.html">808nm 500mWの実験室の半導体レーザー</a>';
	$content .= '<div>4880円</div>';
	$content .= '</div>';
	
	
	
	
	
	
	//top 4
	$content .= '<div class="sideBoxContent centeredContent">';
	$content .= '<div><img src="/images/crown.gif"/><span class="bestsellersNO">NO.4</span></div>';
	$content .= '<a href="http://www.laser-door.com/70ml70-p-329.html"><img src="/images/laser rangfinder L70.jpg"  width="150" height="140" ></a>';
	$content .= '<a class="sidebox-products"  href="http://www.laser-door.com/70ml70-p-329.html">携帯 レーザー距離計 最大測定距離 70m L70型 </a>';
	$content .= '<div>9600円</div>';
	$content .= '</div>';
	
	
	//top 5
	$content .= '<div class="sideBoxContent centeredContent">';
	$content .= '<div><img src="/images/crown.gif"/><span class="bestsellersNO">NO.5</span></div>';
	$content .= '<a href="http://www.laser-door.com/gf002-p-128.html"><img src="/images/GF002.jpg"  width="150" height="120" ></a>';
	$content .= '<a class="sidebox-products"  href="http://www.laser-door.com/gf002-p-128.html">レーザーポインターGF002</a>';
	$content .= '<div>6599円</div>';
	$content .= '</div>';	
	
	
	



	 //base  top5
	  $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
	  $content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
	  for ($i=1; $i<=5; $i++) {
		$content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
	  }
	  $content .= '</ol>' . "\n";
	  $content .= '</div>' . "\n";
	  $content .= '</div>';



?>